/* 
 * 虚拟银行系统 - 银行卡管理页面样式
 */

/* 银行卡列表 */
.bankcard-list {
  margin-bottom: var(--spacing-lg);
}

.bankcard-list .empty-state {
  padding: var(--spacing-xl);
  text-align: center;
  color: var(--light-text);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
}

/* 银行卡样式 */
.bankcard {
  position: relative;
  height: 180px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  color: white;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bankcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.bankcard.debit {
  background: linear-gradient(135deg, #1a3a8f 0%, #3d85c6 100%);
}

.bankcard.credit {
  background: linear-gradient(135deg, #0c2461 0%, #6a89cc 100%);
}

.bankcard-default-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px var(--spacing-sm);
  border-radius: 10px;
  font-size: 12px;
}

.bankcard-chip {
  position: absolute;
  width: 40px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
}

.bankcard-chip::before,
.bankcard-chip::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  left: 10%;
}

.bankcard-chip::before {
  top: 40%;
}

.bankcard-chip::after {
  top: 60%;
}

.bankcard-number {
  margin-top: 50px;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
}

.bankcard-name {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
}

.bankcard-type-icon {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  font-size: 24px;
}

.bankcard-expire {
  position: absolute;
  bottom: var(--spacing-md);
  left: 90px;
  font-size: 12px;
  opacity: 0.8;
}

.bankcard-bank-name {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  font-size: 16px;
  font-weight: 600;
}

.bankcard-actions {
  position: absolute;
  bottom: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
}

.bankcard-action {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-sm);
  cursor: pointer;
  transition: background-color 0.3s;
}

.bankcard-action:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.bankcard-action.delete:hover {
  background-color: rgba(255, 0, 0, 0.3);
}

/* 添加银行卡按钮卡片 */
.add-bankcard-card {
  height: 180px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.add-bankcard-card:hover {
  border-color: var(--primary-color);
  background-color: rgba(61, 133, 198, 0.05);
}

.add-bankcard-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(61, 133, 198, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: var(--spacing-md);
}

.add-bankcard-text {
  color: var(--light-text);
}

/* 响应式设计 */
@media (min-width: 768px) {
  .bankcard-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
  }
  
  .bankcard, .add-bankcard-card {
    margin-bottom: 0;
  }
}
